package com.bop.dehong.bid;

import com.base.dehong.base.AdapterBase;
import com.bop.dehong.info.TenderingInfo;
import com.bop.dehong.loan.LoanBaseFragment;
import com.bop.dehong.loan.adapter.TenderingAdapter;

import android.app.Activity;
import android.view.View;
import android.widget.AdapterView;

/**
* @author TangWenhan/YeFengyun
*/
public class BidingFragment extends LoanBaseFragment{
	MyBidActivity mActivity;

	@Override
	public void reqData() {
		mActivity.reqData(0, mCurrentPage);
	}


	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		mPageName = getClass().getName();
		mActivity = (MyBidActivity) activity;
	}
	@Override
	public void onResume() {
		super.onResume();
		if (mActivity.isFristStart()) {
			initData();
			mActivity.setFristStart(false);
		}
	}

	@Override
	public AdapterBase<TenderingInfo> getAdapter() {
		return new TenderingAdapter(mActivity, 3);
	}


	@Override
	public void onClick(View v)
	{
		
	}

}

